package com.heima.apis.comment;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.mongo.comment.dtos.CommentDto;
import com.heima.mongo.comment.dtos.CommentLikeDto;
import com.heima.mongo.comment.dtos.CommentSaveDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-comment")
public interface ICommentClient {
    //保存评论
    @PostMapping("/api/v1/comment/save")
    public ResponseResult getSave(@RequestBody CommentSaveDto dto);

    //点赞
    //点赞
    @PostMapping("/api/v1/comment/like")
    public ResponseResult like(@RequestBody CommentLikeDto dto);
    //查询评论列表
    @PostMapping("/api/v1/comment/load")
    public ResponseResult load(@RequestBody CommentDto dto)
}
